package com.taobao.txc.parser.struct;

import com.taobao.txc.common.b.c;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class k
{
  private String a;
  private String b;
  private String c;
  private Map<String, f> d = new HashMap();
  private Map<String, g> e = new HashMap();
  
  public k() {}
  
  public k(k paramk)
  {
    this.a = paramk.a;
    this.b = paramk.b;
    this.c = paramk.c;
    this.d = paramk.d;
    this.e = paramk.e;
  }
  
  public String a()
  {
    return this.a;
  }
  
  public void a(String paramString)
  {
    this.a = paramString;
  }
  
  public String b()
  {
    return this.b;
  }
  
  public void b(String paramString)
  {
    this.b = paramString;
  }
  
  public f c(String paramString)
  {
    String str = paramString.toUpperCase();
    f localf = (f)this.d.get(str);
    if (localf == null) {
      if (paramString.charAt(0) == '`') {
        localf = (f)this.d.get(str.substring(1, paramString.length() - 1));
      } else {
        localf = (f)this.d.get("`" + str + "`");
      }
    }
    return localf;
  }
  
  public Map<String, f> c()
  {
    return this.d;
  }
  
  public Map<String, g> d()
  {
    return this.e;
  }
  
  public f e()
  {
    Iterator localIterator = this.d.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      f localf = (f)localEntry.getValue();
      if ("YES".equalsIgnoreCase(localf.e()) == true) {
        return localf;
      }
    }
    return null;
  }
  
  public Map<String, f> f()
  {
    HashMap localHashMap = new HashMap();
    Iterator localIterator1 = this.e.entrySet().iterator();
    while (localIterator1.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator1.next();
      g localg = (g)localEntry.getValue();
      if (localg.c().a() == a.a.a())
      {
        Iterator localIterator2 = localg.a().iterator();
        while (localIterator2.hasNext())
        {
          f localf = (f)localIterator2.next();
          localHashMap.put(localf.b().toUpperCase(), localf);
        }
      }
    }
    if (localHashMap.size() > 1) {
      throw new c("multi pks not support yet.");
    }
    return localHashMap;
  }
  
  public List<String> g()
  {
    return new l(this);
  }
  
  public String h()
  {
    return (String)g().get(0);
  }
  
  public boolean a(List<String> paramList)
  {
    if (paramList == null) {
      return false;
    }
    List localList = g();
    if (localList.isEmpty()) {
      return false;
    }
    return paramList.containsAll(localList);
  }
  
  public String i()
  {
    return this.c;
  }
  
  public void d(String paramString)
  {
    this.c = paramString;
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.parser.struct.k
 * JD-Core Version:    0.7.0.1
 */